package pl.wroc.uni.ii.gdomo;

import android.app.Activity;
import android.os.Bundle;

public class PuzzleActivity extends Activity {
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		startNewGame();
	}
	
	private void startNewGame() {
		
		String hardship = getIntent().getExtras().getString("hardship");

		final Game game = new Game(this, hardship);
		setContentView(game);
		game.post(new Runnable() {

			@Override
			public void run() {
				game.start();			
			}
		});
	}
}